home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / PowerPlant / Everything / DModelessStuffData.cp < prev    next >
Encoding:
Text File  |  1998-10-11  |  1.6 KB  |  111 lines  |  [TEXT/CWIE]

  1. // DModelessStuffData.cp -- data container class for Everything
  2.  
  3. #include "DModelessStuffData.h"
  4.  
  5. #include <LFileStream.h>
  6.  
  7.  
  8. //----------
  9. DModelessStuffData::DModelessStuffData ()
  10. {
  11.     mTools3 = 0;
  12.     mFromValuesList4 = 0;
  13.     mFromMenu3 = 0;
  14.     mTextList3 = 0;
  15. }
  16.  
  17. //----------
  18. DModelessStuffData::~DModelessStuffData ()
  19. {
  20. }
  21.  
  22. //----------
  23. void    DModelessStuffData::CopyFrom (
  24.     DModelessStuffData*        inOther)
  25. {
  26.     mTools3 = inOther->mTools3;
  27.     mFromValuesList4 = inOther->mFromValuesList4;
  28.     mFromMenu3 = inOther->mFromMenu3;
  29.     mTextList3 = inOther->mTextList3;
  30. }
  31.  
  32. //----------
  33. void    DModelessStuffData::ReadFromFile (
  34.     LFileStream*    inFile)
  35. {
  36. }
  37.  
  38. //----------
  39. void    DModelessStuffData::WriteToFile (
  40.     LFileStream*    inFile)
  41. {
  42. }
  43.  
  44.  
  45. //----------
  46. SInt16        DModelessStuffData::GetTools3 () const
  47. {
  48.  
  49.     return mTools3;
  50. }
  51.  
  52. //----------
  53. void    DModelessStuffData::SetTools3 (
  54.     SInt16        inValue)
  55. {
  56.     mTools3 = inValue;
  57.     
  58.     SignalDataChanged (idTools3);
  59. }
  60.  
  61.  
  62. //----------
  63. SInt16        DModelessStuffData::GetFromValuesList4 () const
  64. {
  65.  
  66.     return mFromValuesList4;
  67. }
  68.  
  69. //----------
  70. void    DModelessStuffData::SetFromValuesList4 (
  71.     SInt16        inValue)
  72. {
  73.     mFromValuesList4 = inValue;
  74.     
  75.     SignalDataChanged (idFromValuesList4);
  76. }
  77.  
  78.  
  79. //----------
  80. SInt16        DModelessStuffData::GetFromMenu3 () const
  81. {
  82.  
  83.     return mFromMenu3;
  84. }
  85.  
  86. //----------
  87. void    DModelessStuffData::SetFromMenu3 (
  88.     SInt16        inValue)
  89. {
  90.     mFromMenu3 = inValue;
  91.     
  92.     SignalDataChanged (idFromMenu3);
  93. }
  94.  
  95.  
  96. //----------
  97. SInt16        DModelessStuffData::GetTextList3 () const
  98. {
  99.  
  100.     return mTextList3;
  101. }
  102.  
  103. //----------
  104. void    DModelessStuffData::SetTextList3 (
  105.     SInt16        inValue)
  106. {
  107.     mTextList3 = inValue;
  108.     
  109.     SignalDataChanged (idTextList3);
  110. }
  111.